/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <flgrCoreErrors.h>
#include "flgrCoreDispatch.h"
#include "flgrCoreSystem.h"
#include <flgrVersion.h>


int flgr_system_is_little_endian(void) {
  unsigned int x = 0x11223344;
  unsigned char *px = (unsigned char *) &x;
  int test = (px[0] == 0x44);

  FLGR_DECLARE_FUNCTION;

  return test;
}

char *flgr_get_version(void) {
  return FLGR_VERSION(FLGR_VERSION_MAJOR,FLGR_VERSION_MINOR);
}


int flgr_get_processor_numbers(void) {
  return FLGR_PROC_NUMBER;
}
